package com.study.design.model.behaviorPattern.observer;

/**
* @Name: ConcreteSubject
* @Description: 具体消息主题
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午10:07:40 
* @Version: V1.0
 */
public class ConcreteSubject extends Subject {
	
	private int state ;

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
		this.notifyAllObservers() ;	//通知所有的观察者，状态发生改变
	}
	

}
